import axios from '../AxiosConfig.js'

export const listWebhook = () => {
    return axios({
        method: 'get',
        url: '/api/parameters/webhook'
    })
}


export const createWebhook = (vhost, name, data) => {
    return axios({
        method: 'put',
        url: '/api/parameters/webhook/' + encodeURIComponent(vhost) +'/' + name,
        data: data
    })
}

export const deleteWebhook = (vhost, name) => {
    return axios({
        method: 'delete',
        url: '/api/parameters/webhook/' + encodeURIComponent(vhost) +'/' + name,
    })
}
